#include<stdio.h>
int main(){
    int room_type,days,price;
    scanf("%d %d",&room_type,&days);
    switch(room_type){
        case 1:
            switch(days){
                case 1:
                case 2:
                case 3:
                price=100*days;
                printf("价格:%d\n",price);
                break;
                default:
                price=300+80*(days-3);
                printf("价格:%d\n",price);
                break;
            }
            break;
        case 2:
            switch(days){
                    case 1:
                    case 2:
                    case 3:
                    price=120*days;
                    printf("价格：%d\n",price);
                    break;
                    default:
                    price=360+100*(days-3);
                    printf("价格：%d\n",price);
                    break;
            } 
            break;               
         case 3:
            switch(days){
                    case 1:
                    case 2:
                    case 3:
                    price=150*days;
                    printf("价格：%d\n",price);
                    break;
                    default:
                    price=450+120*(days-3);
                    printf("价格：%d\n",price);
            }
           
        break;
        default:
            printf("没有该房间类型\n");
        }
    return 0;
}
